﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WEB.Core.Util
{
    public class Permission
    {
        #region
        public Permission()
        {
            IsView = IsAdd = IsEdit = IsDelete = IsPrint = IsImport = IsExport = false;
        }

        public Permission(bool Permission)
        {
            IsView = IsAdd = IsEdit = IsDelete = IsPrint = IsImport = IsExport = Permission;
        }

        public Permission(WEB.BLL.Entities.PermissionEntity Permission)
        {
            this.IsView = Permission.IsView;
            this.IsAdd = Permission.IsAdd;
            this.IsEdit = Permission.IsEdit;
            this.IsDelete = Permission.IsDelete;
            this.IsPrint = Permission.IsPrint;
            this.IsImport = Permission.IsImport;
            this.IsExport = Permission.IsExport;
        }

        public Permission(bool IsView, bool IsAdd, bool IsEdit, bool IsDelete, bool IsPrint, bool IsImport, bool IsExport)
        {
            this.IsView = IsView;
            this.IsAdd = IsAdd;
            this.IsEdit = IsEdit;
            this.IsDelete = IsDelete;
            this.IsPrint = IsPrint;
            this.IsImport = IsImport;
            this.IsExport = IsExport;
        }
        #endregion

        #region
        public bool IsView { get; set; }
        public bool IsAdd { get; set; }
        public bool IsEdit { get; set; }
        public bool IsDelete { get; set; }
        public bool IsPrint { get; set; }
        public bool IsImport { get; set; }
        public bool IsExport { get; set; }
        #endregion
    }
}
